<script type="text/javascript">
    $(function(){
        $('.tabs_involved form input[name=username]')
            .focus(function(){
                if(this.value=='用户名') this.value='';
            })
            .blur(function(){
                if(this.value=='') this.value='用户名';
            })
            .keypress(function(e){
                if(e.keyCode==13) $(this).closest('form').submit();
            });

    });

</script>

<article class="module width_full">
    <input type="hidden" value="<?=$this->user['username']?>" />
    <header>
        <h3 class="tabs_involved">综合统计（默认查询的最近七天）
            <form action="/admin778899.php/countData/betDateSearch"  target="ajax" dataType="html" call="defaultList" class="submit_link wz">
                身份：<select name="type" id="type">
                    <option value="">全部</option>
                    <option value="1">代理</option>
                    <option value="2">总代理</option>
                    <option value="3">股东</option>
                    <option value="0">会员</option>
                </select>
                <script>
                    document.getElementById('type').value = "<?=$_GET['type'] ?>"
                </script>
                时间：从 <input type="date" class="alt_btn" name="fromTime" /> 到 <input type="date" class="alt_btn" name="toTime"/>&nbsp;&nbsp;
                <input type="text" class="fqr-in" height="20" placeholder="用户名" name="username"/>&nbsp;&nbsp;
                <input type="submit" value="查找" class="alt_btn">
            </form>
        </h3>
    </header>

    <div class="tab_content">
        <?php $this->display("count/date-list.php");?>
    </div>
</article>